Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision improvements #95

Merged
merged 8 commits into from
Mar 20, 2024
Merged

Vision improvements #95

merged 8 commits into from
Mar 20, 2024

Conversation

KangarooKoala
Copy link
Contributor

Changes:

  • Update to PhotonVision 2024.2.9 (This was done to the Orange Pi as well)
  • Incorporate rotation into ROBOT_TO_CAM instead of rotating the camera stream (Rotating the camera stream messed with calibration)
  • Fix pitch check and make it check roll as well
  • Separate raw and filtered results and improve look of pose display

Notes:

  • 31a7fa0 was tested on Crane but not on Toucan as of 3/18
  • We may need to change the roll later depending on how we mount the camera on Toucan

Update to 2024.2.9
Fix pitch filter
Add debug prints
This was supposed to have been moved after the pitch check for logging purposes, but I moved it to the wrong level
Not tested, roll may need to be negated
This guarantees the ROBOT_TO_CAM transform is correctly accounted for
@TAKBS2412 TAKBS2412 self-requested a review March 19, 2024 03:37
Copy link
Contributor

@TAKBS2412 TAKBS2412 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some (non-blocking) logging improvements we may want to consider in the future:

  • Convert the 3d pose on field entry to a format that AdvantageScope can understand in its 3d view (to make debugging roll/pitch issues easier)
  • Log the individual filter status, so we have more fine-grained information on why a particular target was included (a bit trickier since that implies many different entries)

@KangarooKoala KangarooKoala merged commit 5e5ed4b into main Mar 20, 2024
2 checks passed
@KangarooKoala KangarooKoala deleted the vision-update branch March 20, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants